import request from '@/utils/request'

// 增加模拟考试
export function examAdd(data) {
  return request({
    url: '/manageApi/v1/examAdd',
    method: 'POST',
    data:data
  })
}


// 查询科目章节题库列表数据
export function examList(data) {
  return request({
    url: '/manageApi/v1/examList',
    method: 'POST',
    data:data
  })
}

// 查询科目章节题库列表数据
export function examDel(id) {
  return request({
    url: '/manageApi/v1/examDel/' +id,
    method: 'DELETE'
  })
}

// 查询模拟考试或真题考试试题列表数据
export function examBankList(data) {
  return request({
    url: '/manageApi/v1/examBankList',
    method: 'POST',
    data:data
  })
}

// 获取当前试卷卷面试题剩余数量数据
export function questionSurplus(data) {
  return request({
    url: '/manageApi/v1/questionSurplus',
    method: 'POST',
    data:data
  })
}

// 删除模拟考试或真题考试试题数据
export function examBankDel(id) {
  return request({
    url: '/manageApi/v1/examBankDel/' +id,
    method: 'DELETE'
  })
}

// 学习资料管理 - 查询学习资料列表数据
export function studyDataList(data) {
  return request({
    url: '/manageApi/v1/studyDataList',
    method: 'POST',
    data:data
  })
}

// 学习资料管理 - 删除学习资料数据信息
export function studyDataDel(id) {
  return request({
    url: '/manageApi/v1/studyDataDel/' +id,
    method: 'DELETE'
  })
}
